<?php

namespace sim\db\Entity;

use Doctrine\Common\Collections\ArrayCollection;

/**
 * @Entity
 * @Table(name="sim")
 */
class Sim extends MappedSuperclassBase
{

    /**
     * @var string
     * @Column(type="string", length=32, unique=true, nullable=false)
     */
    protected $number;

    /**
     *
     * @var string
     * @Column(type="string", length=4, nullable=false)
     */
    protected $puk;

    /**
     *
     * @var datetime
     * @Column(type="datetime", name="date_create")
     */
    protected $dateCreate;

    /**
     * @var ArrayCollection
     * @OneToMany(targetEntity="SimOwner", mappedBy="sim")
     */
    protected $users;

    /**
     * @var ArrayCollection
     * @OneToMany(targetEntity="Balances", mappedBy="sim")
     */
    protected $balances;

    function __construct()
    {
        $this->balances = new ArrayCollection;
        $this->users = new ArrayCollection;
    }

    public function getNumber()
    {
        return $this->number;
    }

    public function setNumber($number)
    {
        $this->number = $number;
    }

    public function getPuk()
    {
        return $this->puk;
    }

    public function setPuk($puk)
    {
        $this->puk = $puk;
    }

    public function getDateCreate()
    {
        return $this->dateCreate;
    }

    public function setDateCreate($dateCreate)
    {
        $this->dateCreate = $dateCreate;
    }
    /**
     * 
     * @return ArrayCollection
     */
    public function getUsers()
    {
        return $this->users;
    }

    public function setUsers(ArrayCollection $users)
    {
        $this->users = $users;
    }
    /**
     * 
     * @return ArrayCollection
     */
    public function getBalances()
    {
        return $this->balances;
    }

    public function setBalances(ArrayCollection $balances)
    {
        $this->balances = $balances;
    }



}
